package com.zr.eim.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 密接信息对象 eim_data_close_contact_info
 * 
 * @author peihang
 * @date 2022-10-21
 */
public class EimDataCloseContactInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 密接人身份证 */
    @Excel(name = "密接人身份证")
    private String personId;

    /** 接触阳性人员id */
    @Excel(name = "接触阳性人员id")
    private String diagnosticPersonId;

    /** 接触时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接触时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date closeContactTime;

//----------------------------------------新增代码
    private EimDataPerson person;

    private EimDataPerson diagnosticPerson;

    public EimDataPerson getPerson() {
        return person;
    }

    public void setPerson(EimDataPerson person) {
        this.person = person;
    }

    public EimDataPerson getDiagnosticPerson() {
        return diagnosticPerson;
    }


    public void setDiagnosticPerson(EimDataPerson diagnosticPerson) {
        this.diagnosticPerson = diagnosticPerson;
    }

//    ----------------------------------------------------------------------

    private EimAnalysisStayPoint diagnosticSP;

    private EimAnalysisStayPoint contanctSP;

    public EimAnalysisStayPoint getDiagnosticSP() {
        return diagnosticSP;
    }

    public void setDiagnosticSP(EimAnalysisStayPoint diagnosticSP) {
        this.diagnosticSP = diagnosticSP;
    }

    public EimAnalysisStayPoint getContanctSP() {
        return contanctSP;
    }

    public void setContanctSP(EimAnalysisStayPoint contanctSP) {
        this.contanctSP = contanctSP;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setDiagnosticPersonId(String diagnosticPersonId) 
    {
        this.diagnosticPersonId = diagnosticPersonId;
    }

    public String getDiagnosticPersonId() 
    {
        return diagnosticPersonId;
    }
    public void setCloseContactTime(Date closeContactTime) 
    {
        this.closeContactTime = closeContactTime;
    }

    public Date getCloseContactTime() 
    {
        return closeContactTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personId", getPersonId())
            .append("diagnosticPersonId", getDiagnosticPersonId())
            .append("createTime", getCreateTime())
            .append("closeContactTime", getCloseContactTime())
            .toString();
    }
}
